// config-overrides.js
const { override, addBabelPlugins, fixBabelImports } = require('customize-cra');
module.exports = override(
  ...addBabelPlugins(
//配置styled-jsx即sass
    [
      "styled-jsx/babel",
      { "plugins": ["styled-jsx-plugin-sass"] }
    ]
  ),
    //配置antd-mobile的按需加载
  fixBabelImports('import', {
    libraryName: 'antd-mobile', style: 'css'
  })
)